<?php
/**
 * Created by PhpStorm.
 * User: china
 * Date: 2015/10/24
 * Time: 15:34
 */

namespace J;


class Message
{
    const SERVICE_NOT_FIND          = '找不到服务{class}';
    const FACTORY_NOT_FIND          = '找不到创建器';

    const INTENT_NOT_FIND           = '无效的意图{command}';
    const INTENT_MODULE_NOT_FIND    = '无效的模块名:{module}';

    const EMPTY_CONTROLLER          = '启用默认控制器';
    const CTRL_INTENT_ERROR         = '控制器对象发生意外';
    const NOT_DEFINED_ACTION        = '未定义的操作{option}';
    const INVALID_CONTROLLER        = '无效的控制器{module}->{controller}';
    const MODEL_NOT_DEFINED         = '未定义的模型{module}->{model}';
    const ACT_ERROR                 = '执行失败';

    const SCRIPT_NOT_FIND           = '未找到脚本文件';
    const INVALID_STATUS_CODE       = '无效的HTTP状态码: {statusCode}';

    const CLASS_NOT_FIND            = '重复加载{spec}类';
    const CLASS_ALREADY_LOAD        = '没有找到{spec}文件';
    const CLASS_NOT_DEFINED_IN_FILE = '路径{file}中未找到{spec}类';

    const NOTICE                    = '提示：';

    const SQL_RUN_ERROR             = 'SQL: {sql}; 错误码:{info}';
    const SQL_LOG                   = 'SQL: {sql}; Values: {values}';

    const COLLECTION_NOT_FIND       = '集合{collection}未找到';
    const ELEMENT_NOT_FIND          = '找不到元素{element}';
    const ID_NOT_INPUT              = 'ID未指定';
    const INVALID_ELEMENT_VALUE     = '{collection}-{element}元素数值获取错误';
    const INVALID_ELEMENT_OP        = '对{element}列无效的查询操作符{op}';
    const INVALID_ELEMENT_OP_PARAM  = '对{element}列{op}操作无效的参数{value}';
    const INVALID_NOT_UNIQUE        = '{name}数据唯一性验证错误';
    const INVALID_FIELD_NAME        = '无效的表单域名{field}';
    const INVALID_COLUMN_NAME       = '无效的数据库列名{column}';


    const NO_DB_DRIVER              = '没有{class}类型数据库驱动';
    const CONNECT_ERROR             = '数据库{dsn}连接失败';

    const NO_REG_EVENT              = '没有注册{event}事件';
    const NO_FIND_BEHAVIOR          = '未定义{behavior}行为';

    const ADDON_NOT_DEFINE          = '插件{class}的入口文件不存在！';
    const ADDON_DIR_NOT_FIND        = '插件目录{dir}不可读或者不存在';

    const RESOLVE_TEMPLATE_FILE     = '编译模板文件{key}';
    const PARSE_TEMPLATE_FILE       = '渲染目标文件{cache_key}';
    const TEMPLATE_NOT_FIND         = '找不到模板';
    const SEARCH_TEMPLATE           = '查找模板{template}';

    const STORAGE_INVALID           = '无效的存储器{driver}';

    const AUTHORIZATION_BEGIN       = '权限验证开始';
    const AUTH_FORBID               = '权限校验错误';
    const AUTHORIZATION_END         = '权限验证结束';
    const AUTH_LOGIN_BEGIN          = '登陆验证开始';
    const AUTH_LOGIN_END            = '登陆验证结束';

    const VALIDATOR_NOT_FIND        = '验证器{name}未定义';
    const VALIDATOR_RUN_ERROR       = '验证器{name}执行错误';

    const RUN_FILE                  = "执行文件{file} \r vars={vars}";
    const COMPILE_FILE_BEGIN        = '开始编译文件{file}';
    const COMPILE_VAR               = '发现变量{name}';
    const COMPILE_COMPLETE          = '编译完成';
    const COMPILE_DRIVER_NOT_FIND   = '没有找到编译引擎{engine}';
    const COMPILE_SRC_ERROR         = '没有文件缓存信息，无法输出';

    const MANY_SELECT_BEGIN         = '开始关联查询';
    const MANY_COLLECTION           = '关联集合为{c}';

    const INSTALL_BEGIN             = '开始安装';
    const INSTALL_ERROR             = '安装失败';
    const INSTALL_SUCCESS           = '安装成功';
    const UNINSTALL_SUCCESS = '卸载完成';

    const INTENT_START              = '开始发送意图{intent}';
    const MIDDLEWARE_BEGIN          = '流水线开始';
    const MIDDLEWARE_COMPLETE       = '流水线结束';
    const ACT_INVOKE                = '试图执行动作{option}';
    const ACTOR_COMPLETE            = '内置处理器{actor}执行完成';
    const AUTO_VIEW_PREVENTED       = '未启用自动视图渲染';
    const AUTO_VIEW                 = '自动查找视图';
    const ACTOR_IGNORE              = '内置处理器无法处理';
    const INTENT_RECEIVED           = '意图返回{intent}';

    const DELETE_OLD_ROWS           = '关联操作:清理旧数据';
    const INSERT_NEW_ROWS           = '关联操作:插入新数据';
    const LINKER_NOT_FIND           = '找不到表[{he}]和表[{me}]的关联表';
    const SUPER_ADMINISTRATOR       = '超级管理员';
    const ADMINISTRATOR             = '普通管理员';
    const SUPER_MUST                = '需要超级管理员权限';

    const INSERT_ERROR              = '插入失败';
    const CONDITION_EMPTY           = '无查询条件';
    const WHERE_PARSE_ERROR         = 'WHERE语句解析错误';
    const IDS_PARSE_ERROR           = 'IDS语句解析错误';


    const CORE_ACTION_BEGIN         = '核心处理程序开始';
    const CORE_ACTION_COMPLETE      = '核心处理程序完成';

    const MSG_LOGIN_FAIL            = '登录失败';
    const MSG_DEPARTMENT_CHECK      = '部门验证';
    const MSG_AUTO                  = '进入自动处理程序';

    const FILE_UPLOAD_PATH = '无效的路径{path}';
    const FILE_UPLOAD_SIZE = '{file}文件过大';
    const FILE_UPLOAD_TYPE = '';
    const FILE_UPLOAD_EXT = '';
    const FILE_UPLOAD_MIME = '';
    const FILE_UPLOAD_IMG = '';
    const FILE_UPLOAD_WRITE = '';
    const FILE_UPLOAD_POST = '';



}
